<template>
  <el-container>
    <!-- 头部组件导航 -->
    <Nav />
    <el-main><router-view></router-view></el-main>
    <el-footer>
      <div class="fotOne">
        <div class="icon">
          <div></div>
          <strong> 7天无理由退换货 </strong>
        </div>
        <div class="icon">
          <div></div>
          <strong> 满99元全场免邮 </strong>
        </div>
        <div class="icon">
          <div></div>
          <strong> 100%品质保证 </strong>
        </div>
      </div>
      <div class="fotTow">
        <p>
          <img src="/img/github.png" alt="" />
        </p>
        <p>
          <span class="active" @click="$router.push('/')">首页</span>
          <span class="active" @click="$router.push('goods')">全部商品</span>
          <span  @click="$router.push('my')">关于我们</span>
        </p>
        <p>商城版权所有&ensp;&copy;&ensp;2012-2021</p>
      </div>
    </el-footer>
  </el-container>
</template>

<script>
import Nav from "@/components/Nav/MiuiNav.vue";
export default {
  components: { Nav },
  name: "",
  data() {
    return {};
  },
  mounted() {},
  methods: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped>
.el-container {
  width: 100%;
  height: 100%;
}
.el-header {
  width: 100%;
  height: 40px !important;
  background: #3d3d3d;
  color: #b0b0b0;
  font-size: 15px;
  margin-bottom: 20px;
  .right {
    float: right;
    line-height: 40px;
    margin-right: 60px;
    & > span:hover {
      color: #fff;
      cursor: pointer;
    }
    & > span:nth-child(3) {
      margin: 0 20px;
    }
    & > span:nth-child(4) {
      margin-right: 20px;
    }
    & > div {
      width: 120px;
      background: #424242;
      display: inline-block;
      text-align: center;
    }
    & > div:hover {
      color: orangered;
      background: #fff;
      cursor: pointer;
    }
  }
  .login:after {
    content: "|";
    margin: 0 5px;
  }
}
.el-main {
  height: 100%;
  padding: 0;
}
.el-footer {
  width: 100%;
  height: 400px !important;
  background: #2f2f2f;
  padding: 0;
  .fotOne {
    width: 100%;
    padding: 80px 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: #2f2f2f;
    border-bottom: 1px solid #888;
    .icon {
      display: flex;
      justify-content: space-between;
      align-items: center;
      & > div {
        width: 35px;
        height: 35px;
        display: inline-block;
        background: url("/img/us-icon.png") no-repeat;
        background-position: 0 -3px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      & > strong {
        color: #fff;
      }
    }
  }
  .fotTow {
    text-align: center;
    p{
      margin: 20px 0;
    }
    .active::after {
      content: "|";
      margin: 0 20px;
    }
    p {
      color: #888;
    }
    span:hover {
      color: #fff;
    }
  }
}
</style>
